package com.chen.mapper;

import com.chen.pojo.OperateLog;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface LogMapper {
    @Select("select o.id, o.operate_emp_id, operate_time, class_name, method_name, method_params, return_value, cost_time,e.name as operateEmpName from operate_log o left join emp e on o.operate_emp_id=e.id order by o.operate_time desc ")
    List<OperateLog> selectAll();
}
